package com.bjpowernode.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

//@RestController
@Controller
public class UserController {
    @ResponseBody
    @RequestMapping("/")
    public String index(){
        return "Welcome to Spring Security";
    }

    @RequestMapping("/toLogin")
    public String toLogin(){
        return "login";
    }
}
